package com.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
/**
 * 淘宝店铺链接
 * @author Jason
 *
 */
@Entity
public class Taobao {
	
	private Integer id;
	private String token;
	private String title;//回复标题
	private String picUrl;//图片外链
	private String homeUrl;//链接的淘宝店地址
	private String addTime;//添加时间
	
	private Keyword keyword;//关键字

	
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public String getHomeUrl() {
		return homeUrl;
	}

	public void setHomeUrl(String homeUrl) {
		this.homeUrl = homeUrl;
	}

	public String getAddTime() {
		return addTime;
	}

	public void setAddTime(String addTime) {
		this.addTime = addTime;
	}

	@OneToOne
	@JoinColumn(name="keyid",insertable=true,unique=true) 
	public Keyword getKeyword() {
		return keyword;
	}
	
	public void setKeyword(Keyword keyword) {
		this.keyword = keyword;
	}
	
}
